from transform_excel_tools.service import app

from transform_excel_tools.util import conf_utils
import webbrowser


def main():
    service_conf = conf_utils.get_service_conf()
    host = service_conf['host']
    port = service_conf['port']
    url = 'http://{}:{}'.format(host, port)
    webbrowser.open(url)
    # TODO 调整debug
    # app.run(host=host, port=port)
    app.run(host=host, port=port, debug=True)


if __name__ == '__main__':
    main()
